using Microsoft.VisualStudio.TestTools.UnitTesting;
using static Args;
using Business.Utils;

namespace TestBusinessDemo
{
    [TestClass]
    public class UnitTest1
    {
        static BusinessMember Member = Business.Bind.Create<BusinessMember>();

        [TestMethod]
        public void Test001()
        {
            Member.Command.AsyncCall("Test001", new object[] { new Test001 { A = "aaa", B = "bbb" }.JsonSerialize() }, group: "HTTP").ContinueWith(c =>
             {
                 Assert.AreEqual(c.Result.State, 1);
             }).Wait();
        }
    }
}
